DynamicToolUI

@Serializable
data class DynamicToolUI(val toolCallId: String, val toolName: String, val state: ToolCallState, val input: JsonElement? = null, val output: JsonElement? = null, val error: String? = null, val preliminary: Boolean = false, val providerMetadata: Map<String, JsonElement>? = null) : UIMessagePart

Runtime-typed tool invocation — same lifecycle shape as ToolUI but for tools whose schema isn't known at compile time (the common case in subagents, where the parent agent's static ToolPartHandlerRegistry can't dispatch). Renderers branch on is DynamicToolUI and fall back to a generic "Calling toolName…" card with JSON-printed input / output. Per historical parity gap #9.

Constructors

Link copied to clipboard
constructor(toolCallId: String, toolName: String, state: ToolCallState, input: JsonElement? = null, output: JsonElement? = null, error: String? = null, preliminary: Boolean = false, providerMetadata: Map<String, JsonElement>? = null)

Properties

Link copied to clipboard
Link copied to clipboard
val input: JsonElement?
Link copied to clipboard
val output: JsonElement?
Link copied to clipboard
Link copied to clipboard
val providerMetadata: Map<String, JsonElement>?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard